package com.snake.springboot.authority.dao.mybatis.mappers;

import com.snake.springboot.authority.dao.mybatis.entity.AuthOperatorStrategyDO;
import com.snake.springboot.authority.dao.mybatis.entity.AuthOperatorStrategyExtDO;
import com.snake.springboot.authority.dao.mybatis.entity.OperatorStrategySumDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AuthOperatorStrategyMapper {

    int delete(AuthOperatorStrategyDO key);

    int insert(AuthOperatorStrategyDO record);

    int insertBatch(@Param("records") List<AuthOperatorStrategyDO> records);

    List<AuthOperatorStrategyDO> findByCondition(AuthOperatorStrategyDO condition);

    List<AuthOperatorStrategyExtDO> findStrategy(AuthOperatorStrategyExtDO queryDO);

    int cancelSomeAuthor(List<AuthOperatorStrategyDO> authDOS);

    List<OperatorStrategySumDO> findStrategySum(List<String> operatorIds);

    int deleteList(List<AuthOperatorStrategyDO> authDOS);

    List<AuthOperatorStrategyDO> queryBuyList(List<AuthOperatorStrategyDO> queryDO);
}